package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.RegSnapshotDao;
import com.platform.entity.RegSnapshotEntity;
import com.platform.service.RegSnapshotService;

/**
 * 注册日快照Service实现类
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2019-02-20 19:54:58
 */
@Service("tRegSnapshotService")
public class TRegSnapshotServiceImpl implements RegSnapshotService {
    @Autowired
    private RegSnapshotDao tRegSnapshotDao;

    @Override
    public RegSnapshotEntity queryObject(Long id) {
        return tRegSnapshotDao.queryObject(id);
    }

    @Override
    public List<RegSnapshotEntity> queryList(Map<String, Object> map) {
        return tRegSnapshotDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return tRegSnapshotDao.queryTotal(map);
    }

    @Override
    public int save(RegSnapshotEntity tRegSnapshot) {
        return tRegSnapshotDao.save(tRegSnapshot);
    }

    @Override
    public int update(RegSnapshotEntity tRegSnapshot) {
        return tRegSnapshotDao.update(tRegSnapshot);
    }

    @Override
    public int delete(Long id) {
        return tRegSnapshotDao.delete(id);
    }

    @Override
    public int deleteBatch(Long[] ids) {
        return tRegSnapshotDao.deleteBatch(ids);
    }
}
